package com.youlai.boot.system.model.vo;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import java.time.LocalDateTime;
import java.math.BigDecimal;

/**
 * 订单管理视图对象
 *
 * @author zhangyurun
 * @since 2025-03-20 20:33
 */
@Getter
@Setter
@Schema(description = "订单管理视图对象")
public class OrderVO implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "主键ID")
    private Long id;
    @Schema(description = "用户id")
    private Long userId;
    @Schema(description = "用户名")
    private String username;
    @Schema(description = "联系方式")
    private String mobile;
    @Schema(description = "订单状态（1:未支付 2：已支付 3：已发货 4：已完成 5：已取消）")
    private Integer status;
    @Schema(description = "省")
    private String province;
    @Schema(description = "市")
    private String city;
    @Schema(description = "区")
    private String country;
    @Schema(description = "地址")
    private String address;
    @Schema(description = "运送人员")
    private Long courierId;
    private String courierName;
    @Schema(description = "花费的积分")
    private BigDecimal totalPoints;
    @Schema(description = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", shape = JsonFormat.Shape.STRING)
    private LocalDateTime createTime;
    @Schema(description = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", shape = JsonFormat.Shape.STRING)
    private LocalDateTime updateTime;

    @Schema(description = "商品数量")
    private Integer productQuantity;
}
